//
//  MMGVideoPrizeClawViewModel.h
//  MyApp
//
//  Created by Don on 2017/9/1.
//  Copyright © 2017年 com.memego. All rights reserved.
//

#import "MMGBaseViewModel.h"
#import "MMGSocketMsgModel.h"

static const int kMMG_CAMERA_MAXMUM = 2;

typedef enum {
    
    EMMMGVideoPrizeClawViewStateNone = 0,
    EMMMGVideoPrizeClawViewStateOrderGame,
    EMMMGVideoPrizeClawViewStateStartGame,
    EMMMGVideoPrizeClawViewStateJoystick,
    
}EMMMGVideoPrizeClawViewState;

@interface MMGVideoPrizeClawViewModel : MMGBaseViewModel
@property(nonatomic, assign)EMMMGVideoPrizeClawViewState vpcvState;
@property(nonatomic, assign)int cameraChannel;

- (void)startCountDownWithTimeSec:(int)sec counting:(void (^)(int))countingCallback overCount:(void (^)(int))timeOutCallback;
- (void)starSocket;
- (void)closeSocket;

/**
 发送链接娃娃机设备
 
 @param machinId 娃娃机设备唯一标识
 */
- (void)sendConnectPrizeClawMachineMsg:(NSString *)machinId;


/**
 用户授权
 
 @param authoCode 授权码
 */
//- (void)sendUserAuthoMsg:(NSString *)authoCode;//user login


/**
 发送游戏预约
 */
- (void)sendGameReserveMsg;


/**
 开始游戏
 
 @param limitTime 游戏限制时间
 */
- (void)sendGameStartMsg:(NSString *)limitTime;


/**
 发送抓控制指令
 
 @param control 控制指令
 */
- (void)sendPrizeClawMachineControlMsgWith:(float)radian;


/**
 发送下爪指令
 */
- (void)sendStartClawMsg;


/**
 发送收到获奖消息回应
 */
- (void)sendWinPrizeMsg;
@end
